import kadaDeploy from '@kada/static-deploy'
import fs from 'fs-extra'
import path from 'path'

const pkg = fs.readJsonSync(path.resolve('./package.json'))
const target = `wepage/${pkg.name}/v${pkg.version}/index.html`
const pathname = `n/${pkg.name}/index.html`
const result = await kadaDeploy.symlink({
  env: 'production',
  target,
  pathname,
  serviceName: 'kada-h5',
})
console.log(`${pathname} --> ${target}`)
console.log(result)
